<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateNwYbzElbTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('nw_ybz_elb', function (Blueprint $table) {
            $table->id();
            $table->string('name')->comment('名称');
            $table->string('resource_type')->comment('资源类型');
            $table->string('region')->comment('区域');
            $table->string('resource_set_id')->nullable()->comment('所属资源集');
            $table->string('vdc_id')->comment('所属VDC');
            $table->string('created_time')->comment('创建时间(UTC+08:00)');
            $table->string('elb_id')->unique()->comment('elb_ID');
            $table->string('order_number')->comment('申请订单号');
            $table->string('resource_group')->nullable()->comment('所属资源组')->default("default");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('nw_ybz_elb');
    }
}